<?php
class Application_Model_Resultround
{
    protected $_round;
    protected $_name;
    protected $_opponent;
    protected $_vf;
    protected $_va;
    /**
     * @return the $_round
     */
    public function getRound ()
    {
        return $this->_round;
    }
    /**
     * @return the $_name
     */
    public function getName ()
    {
        return $this->_name;
    }
    /**
     * @return the $_opponent
     */
    public function getOpponent ()
    {
        return $this->_opponent;
    }
    /**
     * @return the $_vf
     */
    public function getVf ()
    {
        return $this->_vf;
    }
    /**
     * @return the $_va
     */
    public function getVa ()
    {
        return $this->_va;
    }
    /**
     * @param field_type $_round
     */
    public function setRound ($_round)
    {
        $this->_round = $_round;
        return $this;
    }
    /**
     * @param field_type $_name
     */
    public function setName ($_name)
    {
        $this->_name = $_name;
        return $this;
    }
    /**
     * @param field_type $_opponent
     */
    public function setOpponent ($_opponent)
    {
        $this->_opponent = $_opponent;
        return $this;
    }
    /**
     * @param field_type $_vf
     */
    public function setVf ($_vf)
    {
        $this->_vf = $_vf;
        return $this;
    }
    /**
     * @param field_type $_va
     */
    public function setVa ($_va)
    {
        $this->_va = $_va;
        return $this;
    }
    /**
     * @return the $_rank
     */
    public function __construct (array $options = null)
    {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }
    public function __set ($name, $value)
    {
        $method = 'set' . $name;
        if (('mapper' == $name) || ! method_exists($this, $method)) {
            throw new Exception('Invalid guestbook property');
        }
        $this->$method($value);
    }
    public function __get ($name)
    {
        $method = 'get' . $name;
        if (('mapper' == $name) || ! method_exists($this, $method)) {
            throw new Exception('Invalid guestbook property');
        }
        return $this->$method();
    }
    public function setOptions (array $options)
    {
        $methods = get_class_methods($this);
        foreach ($options as $key => $value) {
            $method = 'set' . ucfirst($key);
            if (in_array($method, $methods)) {
                $this->$method($value);
            }
        }
        return $this;
    }
}

